function LocationTabController(calendarViewBody, locationTabView) {
    this._calendarViewBody = calendarViewBody;
    this._locationTabView = locationTabView;
}

LocationTabController.prototype = {

    register: function(calendar) {
        var me = this;

        this._locationTabView.setChangeModeCallback(function(location) {
            me._calendarViewBody.setMode(new LocationMode(calendar,location));
        });

        this._locationTabView.render(function (){
            return calendar.getLastUsedLocations();
        });
    },

    _isValidLocationFullName : function(locationFullName) {
        return Location.isValidLocationFullName(locationFullName);
    }
};


